PingOne

public class PingOne

Main class that contains public APIs.

Created by Ping Identity.

Copyright © 2023 Ping Identity.

All rights reserved.

Types

Link copied to clipboard

Callback interface that will return AuthenticationObject. PingOneSDKError object will be null if process completed successfully. AuthenticationObject object will be null if process did not complete successfully.

Link copied to clipboard

Callback interface that will return authentication status as a String. PingOneSDKError object will be null if process completed successfully. String with authentication status will be null if process did not complete successfully.

Link copied to clipboard

Callback interface that will notify about completion of the process of the mobile payload creation.

Link copied to clipboard
public interface PingOneGetInfoCallback

Callback interface that will notify developers about getInfo task completion. JsonObject containing array with all the paired users info will be returned to the calling application on successful response. PingOneSDKError objects array will be empty if process completed successfully.

Link copied to clipboard

Callback interface that will notify about migration status completion.

Link copied to clipboard

A callback interface for receiving the result of a mobile push authentication approval.

Link copied to clipboard

Callback interface that will notify developers about processRemoteNotification task completion. {@link NotificationObject} will be returned if process completed successfully. {@link PingOneSDKError} object will be null if process completed successfully.

Link copied to clipboard

Callback interface that will return One time passcode object. PingOneSDKError object will be null if process completed successfully. OneTimePasscodeInfo object will be null if process did not complete successfully.

Link copied to clipboard

Callback interface that will notify developers about processIdToken task completion {@link PairingObject} will be returned if process completed successfully. {@link PingOneSDKError} object will be null if process completed successfully.

Link copied to clipboard
public interface PingOneSDKCallback

Callback interface that will notify developers about asynchronous task completion. {@link PingOneSDKError} object will be null if process completed successfully.

Link copied to clipboard

Callback interface that will notify developers about pairing task completion.

Link copied to clipboard
public interface PingOneSendLogsCallback

Callback interface that will notify developers about sendLogs task completion. String with unique support ID will be returned in case the logs were sent successfully. The supportId can then be passed to the Ping Identity support team for review. PingOneSDKError object will be null if process completed successfully.

Link copied to clipboard

Callback interface that will notify developers about setDeviceToken task completion. PingOneSDKError objects array will be empty if process completed successfully.

Properties

Link copied to clipboard
public final static PingOne INSTANCE

Functions

Link copied to clipboard
public final static Unit allowPushNotifications(Context context, Boolean allowPush)

Method that will notify the server not to send push messages to this device.

Link copied to clipboard
public final static Unit authenticate(Context context, String authCode, PingOne.PingOneAuthenticationCallback callback)

Method that will try to authenticate with given authCode String value. Upon successful completion {@link AuthenticationObject} will be returned in the onComplete() method of {@link PingOneAuthenticationCallback}.

Link copied to clipboard
public final AuthenticationObject authenticateSuspend(Context context, String authCode)

Method that will try to authenticate with given authCode String value.

Link copied to clipboard
public final static Unit configure(Context context, PingOneGeo geo, PingOne.PingOneSDKCallback callback)

Establishes trust with the PingOne server according to a provided geo. Mandatory method.

Link copied to clipboard
public final Unit configureSuspend(Context context, PingOneGeo geo)

Establishes trust with the PingOne server according to a provided geo. Mandatory method.

Link copied to clipboard

Generates a payload string for any communication needed between the customer mobile app and the PingOne server.

Link copied to clipboard

Generates a payload string for any communication needed between the customer mobile app and the PingOne server.

Link copied to clipboard
public final static Unit getInfo(Context context, PingOne.PingOneGetInfoCallback callback)

Get info.

Link copied to clipboard
public final Pair<JsonObject, Array<PingOneSDKError>> getInfoSuspend(Context context)

Get info.

Link copied to clipboard
public final static Unit getOneTimePassCode(Context context, PingOne.PingOneOneTimePasscodeCallback callback)

Requests the SDK to provide One Time Passcode.

Link copied to clipboard

Requests the SDK to provide One Time Passcode.

Link copied to clipboard
public final static Unit migrateFromPingID(Context context, PingOne.PingOneMigrationStatusCallback callback)

Method that will trigger the migration process, pairing the existing PingID SDK users to the PingOne SDK platform.

Link copied to clipboard

Method that will trigger the migration process, pairing the existing PingID SDK users to the PingOne SDK platform.

Link copied to clipboard
@Deprecated(message = "use pair(context, pairingKey, callback) instead")
public final static Unit pair(Context context, String pairingKey, PingOne.PingOneSDKCallback callback)

Pairs the device with the PingOne server using the pairing key

public final static Unit pair(Context context, String pairingKey, PingOne.PingOneSDKPairingCallback callback)

Pairs the device with the PingOne server using the pairing key.

Link copied to clipboard
public final PairingInfo pairSuspend(Context context, String pairingKey)

Pairs the device with the PingOne server using the pairing key.

Link copied to clipboard
public final static Unit processIdToken(String idToken, PingOne.PingOnePairingObjectCallback callback)

Processes ID Token retrieved from the PingOne server. When using OpenID Connect, this is a mandatory post action method which should be executed after receiving an id token from the PingOne SDK server.

Link copied to clipboard

Processes ID Token retrieved from the PingOne server.

Link copied to clipboard
@Deprecated(message = "use processRemoteNotification(Context context, RemoteMessage remoteMessage, PingOneNotificationCallback callback) instead")
public final static Unit processRemoteNotification(RemoteMessage remoteMessage, PingOne.PingOneNotificationCallback callback)

Processes the remote notification received from PingOne

public final static Unit processRemoteNotification(Context context, String messageData, PingOne.PingOneNotificationCallback callback)

Process the HMS remote notification received from the PingOne server.

public final static Unit processRemoteNotification(Context context, RemoteMessage remoteMessage, PingOne.PingOneNotificationCallback callback)

Processes the FCM remote notification received from the PingOne server.

Link copied to clipboard
public final NotificationObject processRemoteNotificationFCMSuspend(Context context, RemoteMessage remoteMessage)

Processes the FCM remote notification received from the PingOne server.

Link copied to clipboard

Process the HMS remote notification received from the PingOne server. Suspend version that executes in Dispatchers.IO context.

Link copied to clipboard
public final static Unit removePingOneLocalData(Context context)

Remove PingOne local data.

Link copied to clipboard
public final static Unit sendLogs(Context context, PingOne.PingOneSendLogsCallback callback)

Send logs to PingOne server.

Link copied to clipboard
public final String sendLogsSuspend(Context context)

Send logs to PingOne server.

Link copied to clipboard
public final static Unit setDeviceToken(Context context, String registrationIdToken, NotificationProvider notificationProvider, PingOne.PingOneSetDeviceTokenCallback callback)

Sets device remote notification token.

Link copied to clipboard
public final Array<PingOneSDKError> setDeviceTokenSuspend(Context context, String registrationIdToken, NotificationProvider notificationProvider)

Sets device remote notification token.

Link copied to clipboard
public final static Unit setGooglePlayIntegrityProjectNumber(Context context, String projectNumber)

Method that stores a Google Cloud project number to encrypted storage to use when calling Play Integrity APIs.

Link copied to clipboard
@Deprecated(message = "use Play Integrity set-up")
public final static Unit setSafetyNetApiKey(Context context, String apiKey)

Method that stores a SafetyNet API key to encrypted storage to use in future device integrity validations.

Link copied to clipboard

Method that tests the push notification flow for a specified paired geography.

Link copied to clipboard

Method that tests the push notification flow for a specified paired geography.